<template>
  <div class="g-container">
    <div>Txt Shadow</div>
    <div class="left">TxT Long Shadow</div>
  </div>
</template>

<script>
export default {};
</script>

<style lang="scss" scoped>
@function makeLongShadow($color, $direction: 1) {
  $val: 0px 0px $color;
  @for $i from 1 through 30 {
    $color: fade-out(desaturate($color, 1%), 0.02);
    $val: #{$val}, #{$direction * $i}px #{$i}px #{$color};
  }
  @return $val;
}

.g-container {
  height: 100%;
  width: 100%;
  background: #03a9f4;

  & > div {
    text-align: center;
    font-size: 15vmin;
    line-height: 28vh;
    text-shadow: makeLongShadow(hsla(14, 100%, 30%, 1));
    color: hsl(14, 100%, 60%);
  }

  .left {
    text-shadow: makeLongShadow(hsla(231, 50%, 30%, 1), -1);
    color: hsl(231, 50%, 60%);
  }
}
</style>